Skip to content

Test local css import in production#43

Open
m-mujica wants to merge 2 commits into
masterfrom
css-import
Open

Test local css import in production#43
m-mujica wants to merge 2 commits into
masterfrom
css-import

Conversation

@m-mujica

@m-mujica m-mujica commented Apr 24, 2017

Copy link
Copy Markdown
Contributor

I'm expecting this test to fail

Related to stealjs/steal-tools#673

Once that PR gets in I'll run this tests against steal-tools#master to make sure everything looks fine.

Comment thread test/css-local-import/main.js Outdated
var s = getComputedStyle(p);

if (window.assert) {
assert.equal(s.fontSize, "30px", "should inline the @import");

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to update this text, we are no longer inlining the import, but since clean-css does no longer removes them. It should still work.

@m-mujica

Copy link
Copy Markdown
Contributor Author

Update: the test should pass now since steal@1.3.2 fixes the issue with local css imports being removed from the css bundle.

Manuel Mujica added 2 commits June 27, 2017 14:43
- Update steal and steal-tools:
  steal-tools@1.3.2 includes the fix to make the local css @import test
  pass.

- Update test assertion text:
  Local css imports are not inlined in production but they should still
  work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant